import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/goview/project/` + url, ...arg)

/**
 * goview项目表Api接口管理器
 *
 * @author fqa
 * @date  2025/04/08 11:27
 **/
export default {
	// 获取goview项目表分页
	goviewProjectPage(data) {
		return request('page', data, 'get')
	},
	// 提交goview项目表表单 edit为true时为编辑，默认为新增
	goviewProjectSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除goview项目表
	goviewProjectDelete(data) {
		return request('delete', data)
	},
	// 获取goview项目表详情
	goviewProjectDetail(data) {
		return request('detail', data, 'get')
	}
}
